home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / ask_dos.zip / TRY.BAT < prev   
DOS Batch File  |  1994-03-05  |  867b  |  36 lines

  1. @echo off
  2. cls
  3. :
  4. : This batch file demonstrates ASK.COM
  5. :
  6. : Responding YES to "ask" will return a code of 0 to DOS
  7. : Responding NO to "ask" will return a code of 1 to DOS
  8. : The Ctrl-C key combination will return a value of 2 to DOS
  9. :
  10. : Refer to file ASK.DOC and ASK.ASM for details as to the methods
  11. : used in coding of this program. I welcome all thoughts, or 
  12. : questions on programming.  Gossip, news, tales etc., are also
  13. : welcome. Feel free to write!
  14. :
  15. :         Patrick Whittle            Phone: (519) 945-7596
  16. :         365 Watson Ave.
  17. :         Windsor, Ontario
  18. :         Canada  N8S 3S3
  19.  
  20. ASK Do you wish to run Microsoft Windows?
  21. IF errorlevel == 2 goto CTRL_C
  22. IF errorlevel == 1 goto RETURN
  23.  
  24. echo Microsoft Windows!
  25. goto END
  26.  
  27. :CTRL_C
  28. echo errorlevel 2. . .
  29. goto END
  30.  
  31. :RETURN
  32. echo Returned to operating system!
  33.  
  34. :END
  35. echo.
  36.